﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Return.aspx.cs" Inherits="Return"
    MasterPageFile="Site.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Style/MasterStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="Main">
    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
        <!--*************************************-->
        <!--Layout******************************-->
        <div class="layout-title">
            <!--Big title********************************-->
            <div class="big">
                <asp:Label ID="Label6" runat="server" Text="RETURN BOOK TO LIBRARY" CssClass="addpage-toplabel" />
            </div>
            <!--*************************************-->
            <asp:Label ID="note" runat="server" Text="" CssClass="addpage-note"></asp:Label>
            <!--*************************************-->
            <asp:DropDownList ID="DropDownList1" CssClass="return-dropDownList" runat="server">
                <asp:ListItem>[Search by]</asp:ListItem>
                <asp:ListItem>Username</asp:ListItem>
                <asp:ListItem>BookID</asp:ListItem>
                <asp:ListItem>Book Name</asp:ListItem>
            </asp:DropDownList>
            <!--*************************************-->
            <asp:TextBox ID="txtSearch" runat="server" CssClass="return-searchBox" />
            <!--*************************************-->
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSearch"
                ErrorMessage="Please enter keyword" SetFocusOnError="True" CssClass="return-valid"
                EnableClientScript="False" Display="Dynamic"></asp:RequiredFieldValidator>
            <!--*************************************-->
            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click"
                CssClass="addpage-button" />
            <!--*************************************-->
            <asp:Button ID="btnShowOverdue" runat="server" OnClick="btnShowOverdue_Click" Text="Show Overdue"
                CssClass="return-overdue" />
        </div>
        <!--*************************************-->
        <!--*************************************-->
        <div class="layout-content">
            <div class="addlast">
            </div>
            <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="DeleteButton" runat="server" CommandName="dele" CommandArgument='<%# Eval("IssueID") %>'
                                ImageUrl="Images/Logo.png" />
                            <asp:Label ID="Label1" runat="server" Text="Return"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="RenewButton" runat="server" CommandName="renew" CommandArgument='<%# Eval("IssueID") %>'
                                ImageUrl="Images/Logo.png" CausesValidation="False" />
                            <asp:Label ID="Label2" runat="server" Text="Renew"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="addlast">
            </div>
        </div>
    </asp:Panel>
</asp:Content>
